package com.rop.znyx.common.constant;

/**
 * Created with IntelliJ IDEA
 * User: Rop
 * Date: 2023/7/3
 * Time: 15:48
 * Description:
 */
public class MqConst {

    /**
     * 消息补偿
     */
    public static final String MQ_KEY_PREFIX = "znyx.mq:list";
    public static final int RETRY_COUNT = 3;

    /**
     * 商品上下架
     */
    public static final String EXCHANGE_GOODS_DIRECT = "znyx.goods.direct";
    public static final String ROUTING_GOODS_UPPER = "znyx.goods.upper";
    public static final String ROUTING_GOODS_LOWER = "znyx.goods.lower";

    /**
     * 队列
     */
    public static final String QUEUE_GOODS_UPPER = "znyx.goods.upper";
    public static final String QUEUE_GOODS_LOWER = "znyx.goods.lower";

    /**
     * 团长上下线
     */
    public static final String EXCHANGE_LEADER_DIRECT = "znyx.leader.direct";
    public static final String ROUTING_LEADER_UPPER = "znyx.leader.upper";
    public static final String ROUTING_LEADER_LOWER = "znyx.leader.lower";
    //队列
    public static final String QUEUE_LEADER_UPPER = "znyx.leader.upper";
    public static final String QUEUE_LEADER_LOWER = "znyx.leader.lower";

    /**
     * 订单
     */
    public static final String EXCHANGE_ORDER_DIRECT = "znyx.order.direct";
    public static final String ROUTING_ROLLBACK_STOCK = "znyx.rollback.stock";
    public static final String ROUTING_MINUS_STOCK = "znyx.minus.stock";
    public static final String ROUTING_DELETE_CART = "znyx.delete.cart";

    /**
     * 解锁普通商品库存
     */
    public static final String QUEUE_ROLLBACK_STOCK = "znyx.rollback.stock";
    public static final String QUEUE_SEC_KILL_ROLLBACK_STOCK = "znyx.SecKill.rollback.stock";
    public static final String QUEUE_MINUS_STOCK = "znyx.minus.stock";
    public static final String QUEUE_DELETE_CART = "znyx.delete.cart";

    /**
     * 支付
     */
    public static final String EXCHANGE_PAY_DIRECT = "znyx.pay.direct";
    public static final String ROUTING_PAY_SUCCESS = "znyx.pay.success";
    public static final String QUEUE_ORDER_PAY = "znyx.order.pay";
    public static final String QUEUE_LEADER_BILL = "znyx.leader.bill";

    /**
     * 取消订单
     */
    public static final String EXCHANGE_CANCEL_ORDER_DIRECT = "znyx.cancel.order.direct";
    public static final String ROUTING_CANCEL_ORDER = "znyx.cancel.order";

    /**
     * 延迟取消订单队列
     */
    public static final String QUEUE_CANCEL_ORDER = "znyx.cancel.order";

    /**
     * 定时任务
     */
    public static final String EXCHANGE_DIRECT_TASK = "znyx.exchange.direct.task";
    public static final String ROUTING_TASK_23 = "znyx.task.23";

    /**
     * 队列
     */
    public static final String QUEUE_TASK_23 = "znyx.queue.task.23";
}
